<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meat name="viewpoet" content="with=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            .box {
                width: 100px;
                height: 100px;
                border: 3px solid #000;
                font-size: 30px;
                margin-top: 10px;
            }

            .pink {
                background-color: pink;
            }

            .big {
                width: 300px;
                height: 300px;
            }
        </style>
</head>

<body>
    <div id="app">
        <!-- v-bind:class 简写成 :class -->
        <div class="box" :class="{pink:false,big:false}">hello world!</div>
        <div class="box" :class="['pink','big']">happy</div>

    </div>
    <!-- 引入的是开发版本包 - 包含完整的注释和警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {

            },
            methods: {

            }
        })
    </script>

</body>

</html>